package cn.demographic.entity;

import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import cn.demographic.util.FamtDate;

public class Marriage {
    private Integer marriageId;

    private Integer userid;

    private Integer husband;

    private Integer babyCertificate;

    private String babyNumber;

    private Integer validation;

    private Integer childrenWomen;

    private Integer childrenMale;

    private Integer policyIn;

    private Integer policyOutside;

    private Integer certificate;

    private Integer maintenance;

    private Integer pregnancyId;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private String measurestime;
    private Date measures;

    private Integer isdel;

    private String enterUser;

    private Date enterTime;

    private Integer birth;
    
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private String birthDatetime;
    private Date birthDate;

    private Integer policy;
    
    private Pregnancy pregnancy;							//怀孕情况

    
    
    
    
    
    
    
    
    
    
    
    public String getMeasurestime() {
		return FamtDate.fordate(measures);
	}

	public void setMeasurestime(String measurestime) {
		this.measurestime = measurestime;
	}

	public String getBirthDatetime() {
		return FamtDate.fordate(birthDate);
	}

	public void setBirthDatetime(String birthDatetime) {
		this.birthDatetime = birthDatetime;
	}

	public Pregnancy getPregnancy() {
		return pregnancy;
	}

	public void setPregnancy(Pregnancy pregnancy) {
		this.pregnancy = pregnancy;
	}

	public Integer getMarriageId() {
        return marriageId;
    }

    public void setMarriageId(Integer marriageId) {
        this.marriageId = marriageId;
    }

    public Integer getUserid() {
        return userid;
    }

    public void setUserid(Integer userid) {
        this.userid = userid;
    }

    public Integer getHusband() {
        return husband;
    }

    public void setHusband(Integer husband) {
        this.husband = husband;
    }

    public Integer getBabyCertificate() {
        return babyCertificate;
    }

    public void setBabyCertificate(Integer babyCertificate) {
        this.babyCertificate = babyCertificate;
    }

    public String getBabyNumber() {
        return babyNumber;
    }

    public void setBabyNumber(String babyNumber) {
        this.babyNumber = babyNumber == null ? null : babyNumber.trim();
    }

    public Integer getValidation() {
        return validation;
    }

    public void setValidation(Integer validation) {
        this.validation = validation;
    }

    public Integer getChildrenWomen() {
        return childrenWomen;
    }

    public void setChildrenWomen(Integer childrenWomen) {
        this.childrenWomen = childrenWomen;
    }

    public Integer getChildrenMale() {
        return childrenMale;
    }

    public void setChildrenMale(Integer childrenMale) {
        this.childrenMale = childrenMale;
    }

    public Integer getPolicyIn() {
        return policyIn;
    }

    public void setPolicyIn(Integer policyIn) {
        this.policyIn = policyIn;
    }

    public Integer getPolicyOutside() {
        return policyOutside;
    }

    public void setPolicyOutside(Integer policyOutside) {
        this.policyOutside = policyOutside;
    }

    public Integer getCertificate() {
        return certificate;
    }

    public void setCertificate(Integer certificate) {
        this.certificate = certificate;
    }

    public Integer getMaintenance() {
        return maintenance;
    }

    public void setMaintenance(Integer maintenance) {
        this.maintenance = maintenance;
    }

    public Integer getPregnancyId() {
        return pregnancyId;
    }

    public void setPregnancyId(Integer pregnancyId) {
        this.pregnancyId = pregnancyId;
    }

    public Date getMeasures() {
        return measures;
    }

    public void setMeasures(Date measures) {
        this.measures = measures;
    }

    public Integer getIsdel() {
        return isdel;
    }

    public void setIsdel(Integer isdel) {
        this.isdel = isdel;
    }

    public String getEnterUser() {
        return enterUser;
    }

    public void setEnterUser(String enterUser) {
        this.enterUser = enterUser == null ? null : enterUser.trim();
    }

    public Date getEnterTime() {
        return enterTime;
    }

    public void setEnterTime(Date enterTime) {
        this.enterTime = enterTime;
    }

    public Integer getBirth() {
        return birth;
    }

    public void setBirth(Integer birth) {
        this.birth = birth;
    }

    public Date getBirthDate() {
        return birthDate;
    }

    public void setBirthDate(Date birthDate) {
        this.birthDate = birthDate;
    }

    public Integer getPolicy() {
        return policy;
    }

    public void setPolicy(Integer policy) {
        this.policy = policy;
    }
}